<?php

/**
 * Form/UploadFileForm.php
 */

namespace RHX\Form;

use Zend\Form\Element;
use Zend\Form\Form;

class UploadFileForm extends Form {

    public function __construct($name = null, $options = array()) {
	parent::__construct($name, $options);
	
	$this->addElements();
    }

    public function addElements() {
	// File Input
	$file = new Element\File('filepath');
	$file->setLabel("Télécharger un fichier PDF")
		->setAttribute('id', 'filepath');
	$this->add($file);
	// matricule
	$hidden	 = new Element\Hidden('matricule');
	$this->add($hidden);
    }

}

?>
